﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using CodeGame.Networking.Serverside;
using CodeGame.Networking.Serverside.ClientServerPackets;

using LuaInterface;

namespace CodeGame.ServerLuaLibary
{
    internal static class luaSLib_network
    {
        public static void addHook(int id, LuaFunction func)
        {
            ScriptedPacket.AddHook(id, new LuaHook(func));
        }

        public static void sendCustom(int id, string content)
        {
            ServerProtocolScripted.SendScriptedMessage(id, content);
        }
    }   
}
